package com.iplant.ams.service.po.ams;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.base.po.BasePO;
import com.iplant.base.utils.annotation.po.DBBasePO;
import com.iplant.base.utils.annotation.field.DBField;

import java.io.Serializable;

@DBBasePO(TableName = "ams_receive_goods_item", CheckName = {"Code"}, CodeAuto = true, CodePrefix = "RCGSI_{yyyyMMdd}", CodeNum = 5)
public class AMSReceiveGoodsItem extends BasePO implements Serializable {

    /**
     * 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 收货单ID
     */
    @DBField
    public int ReceiveID = 0;

    /**
     * 采购单具体项ID
     */
    @DBField
    public int OrderItemID = 0;

    /**
     * 采购单上的采购数
     */
    public int PurchaseQuantity = 0;

    /**
     * 采购单上记录的已到货总数
     */
    public int ReceivedTotal = 0;

    /**
     * 资产名称
     */

    public String AssetName = "";

    /**
     * 资产型号
     */
    public String AssetModel = "";

    /**
     * 计量单位
     */
    public String AssetUnit = "";

    /**
     * 收货数量
     */
    @DBField
    public int ReceiveQuantity = 0;

    /**
     * 当前状态，例如是否入库等
     */
    @DBField
    public int CurrentStatus = 0;

    public AMSReceiveGoodsItem() {
        super();
    }

    @JsonProperty("ReceiveID")
    public int getReceiveID() {
        return ReceiveID;
    }

    public void setReceiveID(int receiveID) {
        ReceiveID = receiveID;
    }

    @JsonProperty("OrderItemID")
    public int getOrderItemID() {
        return OrderItemID;
    }

    public void setOrderItemID(int orderItemID) {
        OrderItemID = orderItemID;
    }

    @JsonProperty("AssetName")
    public String getAssetName() {
        return AssetName;
    }

    public void setAssetName(String assetName) {
        AssetName = assetName;
    }

    @JsonProperty("AssetModel")
    public String getAssetModel() {
        return AssetModel;
    }

    public void setAssetModel(String assetModel) {
        AssetModel = assetModel;
    }

    @JsonProperty("AssetUnit")
    public String getAssetUnit() {
        return AssetUnit;
    }

    public void setAssetUnit(String assetUnit) {
        AssetUnit = assetUnit;
    }

    @JsonProperty("ReceiveQuantity")
    public int getReceiveQuantity() {
        return ReceiveQuantity;
    }

    public void setReceiveQuantity(int receiveQuantity) {
        ReceiveQuantity = receiveQuantity;
    }

    @JsonProperty("CurrentStatus")
    public int getCurrentStatus() {
        return CurrentStatus;
    }

    public void setCurrentStatus(int currentStatus) {
        CurrentStatus = currentStatus;
    }

    @JsonProperty("PurchaseQuantity")
    public int getPurchaseQuantity() {
        return PurchaseQuantity;
    }

    public void setPurchaseQuantity(int purchaseQuantity) {
        PurchaseQuantity = purchaseQuantity;
    }

    @JsonProperty("ReceivedTotal")
    public int getReceivedTotal() {
        return ReceivedTotal;
    }

    public void setReceivedTotal(int receivedTotal) {
        ReceivedTotal = receivedTotal;
    }
}
